/*

	JTStrengthTester.h
	PasswordStrength

	Created by Jim Turner on 1/11/10 for http://nukethemfromorbit.com/

	Ported from QualityEstimation.cs from the http://keepass.info/ project
	Copyright (C) 2003-2009 Dominik Reichl <dominik.reichl@t-online.de>

	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#import <Foundation/Foundation.h>

typedef enum {
	Escape = 60,
	Alpha = 26,
	Number = 10,
	SimpleSpecial = 16,
	ExtendedSpecial = 17,
	High = 112
} CharSpaceBits;


@interface JTStrengthTester : NSObject {

}

// There doesn't appear to be any reference on what value represents a "good" password, so
// it's up to you to decide.
// 0 is very bad, greater than 60 or so is average, 30-character gibberish can produce scores of 170+
+(NSUInteger) checkStrengthOfPassword:(NSString *)password;

@end
